const db = uniCloud.database();

var welfare={
	queryTaps:()=>{
		let welfare_tap=db.collection('welfare_tap')
		.where({show:true}).orderBy("tabId", "asc").get();
		return welfare_tap;
	},
	queryCoupons:()=>{
		let welfare_coupons=db.collection('welfare_coupon')	
		.where({show:true}).orderBy("sort", "asc").get();
		return welfare_coupons;
	}
}

module.exports = welfare;

